- <template>
- <SearchNews v-if="type == 1"></SearchNews>
- <SearchGoods v-if="type == 2"></SearchGoods>
- <SearchCompany v-if="type == 6"></SearchCompany>
- <SearchProject v-if="type == 7"></SearchProject>
- </template>
- <script setup>
- import { useRoute } from 'vue-router'
- const route = useRoute();
- let type = route.query.type
- let keyword = route.query.keyword
- </script>
|